package com.mininglamp.hbga.adapter;

import javax.servlet.http.HttpServletRequest;
import java.util.concurrent.Callable;

/**
 * 适配器抽象类
 * Created by kevin on 2017/8/6.
 */
public abstract class BaseAdapter implements Callable {

    protected HttpServletRequest request = null;

    public BaseAdapter setRequest(HttpServletRequest request) {
        this.request = request;
        return this;
    }

    /**
     * 具体的适配器处理逻辑
     *
     * @return
     */
    @Override
    public abstract Object call();

}
